package com.hefei.genericity;

import java.util.ArrayList;
import java.util.List;

/**
 * @author caizhengjun
 * @date 2020/9/4 1:36 下午
 */
public class Demo02 {
    public static void main(String[] args) {
        List<String> stringArrayList = new ArrayList<>();

        List<Integer> integerArrayList = new ArrayList<>();

        Class<? extends List> stringArrayListClass = stringArrayList.getClass();
        Class<? extends List> integerArrayListClass = integerArrayList.getClass();
        System.out.println("stringArrayListClass = " + stringArrayListClass);
        System.out.println("integerArrayListClass = " + integerArrayListClass);

    }
}
